package org.his.pojo.xinwen;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Objects;

public class NComment implements Serializable {
    private Integer commentid;
    private Integer newid;
    private Integer userid;
    private String comment;
    private Timestamp commentDate;

    public Integer getCommentid() {
        return commentid;
    }

    public void setCommentid(Integer commentid) {
        this.commentid = commentid;
    }

    public Integer getNewid() {
        return newid;
    }

    public void setNewid(Integer newid) {
        this.newid = newid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(Timestamp commentDate) {
        this.commentDate = commentDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        NComment nComment = (NComment) o;
        return Objects.equals(commentid, nComment.commentid) &&
                Objects.equals(newid, nComment.newid) &&
                Objects.equals(userid, nComment.userid) &&
                Objects.equals(comment, nComment.comment) &&
                Objects.equals(commentDate, nComment.commentDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(commentid, newid, userid, comment, commentDate);
    }
}
